/*
 * @Author: sbotlp
 * @Email: sbotlp@sina.com
 * @Date: 2019-06-29 17:24:02
 * @LastEditTime: 2019-06-30 10:30:21
 * @Description: http://www.sbotlp.com.cn
 */
import { ComponentClass } from 'react';
import { withRouter as nativeWithRouter } from 'react-router';
export type ComponentDecorator<P = any> = <T extends ComponentClass<P>>(WrappedComponent: T) => T;
export const withRouter: ComponentDecorator = nativeWithRouter as any;